package stopwatch.dto;

import java.util.ArrayList;
import java.util.List;

public class FlowCommand
{
	public static int RUN = 1;
	public static int STOP = 2;
	public static int PAUSE = 3;
	public static int SET = 4;

	private int command = RUN;

	private List<FlowData> listOfFlows = new ArrayList<FlowData>();

	private FlowData flow = null;

	public FlowCommand(int cmd)
	{
		this.command = cmd;
	}

	public int getCommand()
	{
		return command;
	}

	public void setCommand(int command)
	{
		this.command = command;
	}

	public List<FlowData> getListOfFlows()
	{
		return listOfFlows;
	}

	public void setListOfFlows(List<FlowData> listOfFlows)
	{
		this.listOfFlows = listOfFlows;
	}

	public FlowData getFlow()
	{
		return flow;
	}

	public void setFlow(FlowData flow)
	{
		this.flow = flow;
	}

	public String toString()
	{
		return "cmd: " + command + ", flow: " + flow + ", list: " + listOfFlows;
	}
}
